Optimal. Leaf size=134 \[ \frac{i b \sqrt{e} n \text{PolyLog}\left (2,-\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{2 d^{3/2}}-\frac{i b \sqrt{e} n \text{PolyLog}\left (2,\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{2 d^{3/2}}-\frac{\sqrt{e} \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^{3/2}}-\frac{a+b \log \left (c x^n\right )}{d x}-\frac{b n}{d x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17457, antiderivative size = 134, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 8, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.348, Rules used = {325, 205, 2351, 2304, 2324, 12, 4848, 2391} \[ \frac{i b \sqrt{e} n \text{PolyLog}\left (2,-\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{2 d^{3/2}}-\frac{i b \sqrt{e} n \text{PolyLog}\left (2,\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{2 d^{3/2}}-\frac{\sqrt{e} \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^{3/2}}-\frac{a+b \log \left (c x^n\right )}{d x}-\frac{b n}{d x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 325
Rule 205
Rule 2351
Rule 2304
Rule 2324
Rule 12
Rule 4848
Rule 2391
Rubi steps
\begin{align*} \int \frac{a+b \log \left (c x^n\right )}{x^2 \left (d+e x^2\right )} \, dx &=\int \left (\frac{a+b \log \left (c x^n\right )}{d x^2}-\frac{e \left (a+b \log \left (c x^n\right )\right )}{d \left (d+e x^2\right )}\right ) \, dx\\ &=\frac{\int \frac{a+b \log \left (c x^n\right )}{x^2} \, dx}{d}-\frac{e \int \frac{a+b \log \left (c x^n\right )}{d+e x^2} \, dx}{d}\\ &=-\frac{b n}{d x}-\frac{a+b \log \left (c x^n\right )}{d x}-\frac{\sqrt{e} \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^{3/2}}+\frac{(b e n) \int \frac{\tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right )}{\sqrt{d} \sqrt{e} x} \, dx}{d}\\ &=-\frac{b n}{d x}-\frac{a+b \log \left (c x^n\right )}{d x}-\frac{\sqrt{e} \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^{3/2}}+\frac{\left (b \sqrt{e} n\right ) \int \frac{\tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right )}{x} \, dx}{d^{3/2}}\\ &=-\frac{b n}{d x}-\frac{a+b \log \left (c x^n\right )}{d x}-\frac{\sqrt{e} \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^{3/2}}+\frac{\left (i b \sqrt{e} n\right ) \int \frac{\log \left (1-\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{x} \, dx}{2 d^{3/2}}-\frac{\left (i b \sqrt{e} n\right ) \int \frac{\log \left (1+\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{x} \, dx}{2 d^{3/2}}\\ &=-\frac{b n}{d x}-\frac{a+b \log \left (c x^n\right )}{d x}-\frac{\sqrt{e} \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^{3/2}}+\frac{i b \sqrt{e} n \text{Li}_2\left (-\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{2 d^{3/2}}-\frac{i b \sqrt{e} n \text{Li}_2\left (\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{2 d^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.139715, size = 173, normalized size = 1.29 \[ \frac{d \left (b d \sqrt{e} n x \text{PolyLog}\left (2,\frac{\sqrt{e} x}{\sqrt{-d}}\right )-b d \sqrt{e} n x \text{PolyLog}\left (2,\frac{d \sqrt{e} x}{(-d)^{3/2}}\right )-d \sqrt{e} x \log \left (\frac{\sqrt{e} x}{\sqrt{-d}}+1\right ) \left (a+b \log \left (c x^n\right )\right )+d \sqrt{e} x \log \left (\frac{d \sqrt{e} x}{(-d)^{3/2}}+1\right ) \left (a+b \log \left (c x^n\right )\right )+2 d \sqrt{-d} \left (a+b \log \left (c x^n\right )\right )-2 b (-d)^{3/2} n\right )}{2 (-d)^{7/2} x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.268, size = 531, normalized size = 4. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b \log \left (c x^{n}\right ) + a}{e x^{4} + d x^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a + b \log{\left (c x^{n} \right )}}{x^{2} \left (d + e x^{2}\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{b \log \left (c x^{n}\right ) + a}{{\left (e x^{2} + d\right )} x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]